

//--------------------------------------------------------------------------------------------------------------------------
function editGUI(HTMLObj)
{
	//Redondant avec goToView
	var dataObject = htmlObjToGUI(HTMLObj);
	if (dataObject)
	{
		//dataObject.hide("list");
		dataObject.show("form","list");
	}
}

//--------------------------------------------------------------------------------------------------------------------------
// Ouvrir un fichier

function openFile(HTMLObj)
{
	var dataObject = htmlObjToGUI(HTMLObj);
	if (dataObject)
		{window.open(dataObject.getAttribute("fileUrl"), "Fichier");}	
}

//--------------------------------------------------------------------------------------------------------------------------
//Voir une image

var loadingPhotoDataObject;

function viewImage(HTMLObj)
{
	var dataObject = htmlObjToGUI(HTMLObj);
	if (dataObject)
		{
			$("#"+dataObject.parentList.getContainer("list").id).hide(globalParams.animationSpeed);
			dataObject.show('mini');
		}
}

function backToList(HTMLObj)
{
	var dataObject = htmlObjToGUI(HTMLObj);
	if (dataObject)
		{
			dataObject.hide('mini');
			$("#"+dataObject.parentList.getContainer("list").id).show();
		}
}


function imageLoaded(objImg)
{
	objImg.style.display='';
}


//Version imprimable d'une image
function printableImage(HTMLObj)
{
	var dataObject = htmlObjToGUI(HTMLObj);
	if (dataObject)
		{window.open(dataObject.printImgUrl, "Photo");}	
}


//--------------------------------------------------------------------------------------------------------------------------
